<?php if( $this->emptyResult ) { ?>

<div class="box nomtop">
<h1><?php echo $this->translate( 'cooperation' ) ?></h1>
	
	
	<div class="desctext">
    	<p>
    	<?php echo $this->translate( 'cooperation_empty' ) ?>
    	</p>
	
	<div class="clr"></div>
	</div>
	
	<div class="end"></div>
</div>
<?php } else { ?>
<div class="box nomtop">
	<h1><?php echo $this->list['title_' . $this->locale] ?></h1>
	
	<div class="desctext">
	<?php if($this->list['graph'] == 2) {?>
	<script type="text/javascript">
	<!-- For version detection, set to min. required Flash Player version, or 0 (or 0.0.0), for no version detection. --> 
	var swfVersionStr = "10.0.0";
	<!-- To use express install, set to playerProductInstall.swf, otherwise the empty string. -->
	var xiSwfUrlStr = "playerProductInstall.swf";
	var flashvars = {};
	flashvars.xml_path = "<?php echo $this->baseUrl(); ?>/index/putter/id/<?php echo $this->list['galeries_g_id'] ?>";
	var params = {};
	params.quality = "high";
	params.bgcolor = "#000000";
	params.allowscriptaccess = "sameDomain";
	params.allowfullscreen = "true";
	var attributes = {};
	attributes.id = "Carnauba_Miotacz";
	attributes.name = "Carnauba_Miotacz";
	attributes.align = "middle";
	swfobject.embedSWF(
	"<?php echo $this->baseUrl(); ?>/public/swf/Carnauba_Miotacz04.swf", "puttercontent", 
	"300", "200", 
	swfVersionStr, xiSwfUrlStr, 
	flashvars, params, attributes);
	<!-- JavaScript enabled so display the flashContent div in case it is not replaced with a swf object. -->
	swfobject.createCSS("#puttercontent", "display:block;width:300px;height:200px;");
	</script>
	<div style="float: left;display: inline;margin-right: 20px;"><div id="puttercontent"></div></div>
	<?php } if($this->list['graph'] == 1){?>
		<img src="<?php echo $this->File( $this->list['Galeries']['Photos'], 255 ) ?>" />
	<?php }?>
	<p>
	<?php echo nl2br( $this->list['lead_' . $this->locale] ) ?>
	</p>
	<div class="clr"></div>
	</div>
		
	<div class="end"></div>
</div>	
		
	
<?php if($this->list['main_page2'] == 'yes'){?>

<?php echo $this->inlineScript()->setScript('

$.validator.addMethod("telRegex", 
	function(value, element) {
        return this.optional(element) || /^[0-9\-\ \(\)\+]+$/i.test(value);
    }, 
"' . $this->translate( 'club_error_phone' ) . '");

$(document).ready(function(){
	$("#club-form").validate({
		rules: {
			namesurname : {
				required: true,
				minlength: 2
			},
			companyname : {
				required: true,
				minlength: 2
			},
			email : {
				required: true,
				email: true
			},
			phone : {
				required: true,
				minlength: 7,
				telRegex: true
			},
			inquiry : {
				required: true,
				minlength: 5
			}
			
		},
		messages: {
			namesurname : "' . $this->translate( 'club_error_namesurname' ) . '",
			companyname : "' . $this->translate( 'club_error_companyname' ) . '",
			email : "' . $this->translate( 'club_error_email' ) . '",
			phone : "' . $this->translate( 'club_error_phone' ) . '",
			inquiry: "' . $this->translate( 'club_error_inquiry' ) . '"

		}
	});
});
'); ?>

    	<?php 
    	
    	  if( $this->sendInfo )
    	  {
    	   ?>
    	   <div class="box nomtop">
			<h1><?php echo $this->translate('club_join') ?></h1>
    	   <div class="desctext">
    	   <p>
    	<?php echo $this->translate( 'club_sendinfo' ) ?>
    	</p>
           <div class="clr"></div>
	</div>
		
	<div class="end"></div>
</div>	
    	   <?php 
    	  }
    	  else
    	  {
    	
    	?>
    
 
<div class="box">
	
	<h1><?php echo $this->translate('club_join') ?></h1>
	<form id="club-form" method="post">
	<table class="tab">
		<tr>
			<td class="aright"><span class="star">*</span><?php echo $this->translate( 'namesurname' ) ?>:</td>
			<td><input type="text" id="cnameandsurname" name="namesurname" value=""></td>
		</tr>
		<tr>
			<td class="aright"><?php echo $this->translate( 'company_name' ) ?>:</td>
			<td><input type="text" id="ccompany_name" name="companyname" value=""></td>
		</tr>
		<tr>
			<td class="aright"><span class="star">*</span><?php echo $this->translate( 'email' ) ?></td>
			<td><input type="text" id="cemail" name="email" value=""></td>
		</tr>
		<tr>
			<td class="aright"><span class="star">*</span><?php echo $this->translate( 'phone' ) ?>:</td>
			<td><input type="text" id="cphone" name="phone" value=""></td>
		</tr>
		<tr>
			<td class="aright"><span class="star">*</span><?php echo $this->translate( 'question' ) ?></td>
			<td><textarea id="cquestion" name="inquiry"></textarea></td>
		</tr>
		<tr>
			<td class="acenter" colspan="2"><p class="mtop15"><a href="javascript:;" onclick="$('#club-form').submit()" class="button sh"><?php echo $this->translate( 'send' ) ?></a></p></td>
		</tr>
	</table>
	</form>
	<div class="end"></div>
</div>

    	<?php } ?>


<?php }?>
<?php }?>	
